local s15__guanxing = fk.CreateSkill({
  name = "s15__guanxing",
})

Fk:loadTranslationTable {
  ["s15__guanxing"] = "观星",
  [":s15__guanxing"] = "准备阶段，你可以观看牌堆顶5张牌，并以任意顺序置于牌堆顶或牌堆顶。",

  ["$s15__guanxing1"] = "天星之变，吾窥探一二。",
  ["$s15__guanxing2"] = "星途莫测，细细推敲。",
}

s15__guanxing:addEffect(fk.EventPhaseStart, {
  anim_type = "control",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(s15__guanxing.name) and player.phase == Player.Start
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:askToGuanxing(player, {
      cards = room:getNCards(5),
      skill_name = s15__guanxing.name,
    })
  end,
})

return s15__guanxing
